﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LevelEditor.model.elements
{
    public class Barrel : AbstractPGameObject
    {
        #region Variables
        private float m_mass;

        #endregion

        #region Constructeurs
        public Barrel(string name, Dictionary<String, String> pGameObjectData, float mass)
            : base(name, pGameObjectData)
        {
            m_mass = mass;
        }

        #endregion

        #region Methodes
        public override Dictionary<string, string> getViewData()
        {
            Dictionary<string, string> data = base.getViewData();

            data["masse"] = m_mass.ToString();

            return data;
        }

        #endregion

        #region Getters && Setters
        public float mass
        {
            get { return m_mass; }
        }

        #endregion
    }
}
